<template>
	<div>
    <navigator :url="'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id='+item.roomid+'&custom_params='+''" v-for="item in roomList" :key="item.roomid">
      <img :src="item.cover_img" alt="">
      <span>主播：{{item.anchor_name}}</span>
    </navigator>
  </div>
</template>
<script>
  import {mapState, mapActions} from 'vuex';
	export default {
    computed: {
      ...mapState({
        roomList: state=>state.live.roomList
      })
    },
		onShow() {
      this.getRoomList();
		},
		methods: {
      ...mapActions({
        getRoomList: 'live/getRoomList'
      })
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin: 200rpx auto 50rpx auto;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
